package com.ls.data.mapper;

import com.ls.interPojo.TodayHistory;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author 段成
 * @date 2020/1/9 - 20:32
 */
@Mapper
public interface TodayHistoryMapper {
    @Select("select * from tb_todayHistory where month=#{month} and day=#{day}")
    TodayHistory getDataByMonthAndDay(@Param("month") String month,@Param("day") String day);

    @Insert("INSERT INTO `lingsun2`.`tb_todayHistory` (`result`, `month`, `day`) VALUES (#{result}, #{month}, #{day})")
    void insertData(TodayHistory insertData);
}
